package com.nbcio.modules.crm.activity.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * CRM销售活动实体
 */
@Data
@TableName("crm_activity")
public class CrmActivity {
    @TableId
    private Long activityId;
    private String activityType; // VISIT/CALL/EMAIL/MEETING/OTHER
    private String activityName;
    private Long customerId;
    private Long contactId;
    private Long opportunityId;
    private Long ownerUserId;
    private LocalDateTime activityDate;
    private Integer duration; // 活动时长(分钟)
    private String location;
    private String description;
    private String result;
    private LocalDateTime nextFollowDate;
    private String status; // PLANNED/COMPLETED/CANCELLED
    private Long createBy;
    private LocalDateTime createTime;
    private Long updateBy;
    private LocalDateTime updateTime;
    private Long createDept;
    private String tenantId;
}


